<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $oid;?></title>
<link href="img/base.css" rel="stylesheet" type="text/css" />
<body>
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
  <tr>
    <td width="100" height="25" align="center" bgcolor="#F0F0F0">ID</td>
    <td height="25" bgcolor="#F0F0F0">&nbsp;商品名称</td>
    <td width="100" height="25" align="center" valign="middle" bgcolor="#F0F0F0">数量</td>
    <td width="100" height="25" align="right" bgcolor="#F0F0F0">单价(元/单位)</td>
    <td width="100" height="25" align="right" bgcolor="#F0F0F0">合计(元)</td>
  </tr>
<?php $priceCount = 0;?>
{dede:datalist}
<?php $priceCount += $fields['price']*$fields['buynum'];?>
  <tr>
    <td height="25" align="center" bgcolor="#FFFFFF">&nbsp;{dede:field.aid/}</td>
    <td height="25" bgcolor="#FFFFFF">&nbsp;{dede:field.title/}</td>
    <td height="25" align="center" bgcolor="#FFFFFF">&nbsp;{dede:field.buynum/}</td>
    <td height="25" align="right" bgcolor="#FFFFFF">&nbsp;{dede:field.price/}</td>
    <td height="25" align="right" bgcolor="#FFFFFF">&nbsp;<?php echo sprintf("%01.2f", $fields['price']*$fields['buynum']);?></td>
  </tr>
{/dede:datalist}
  <tr>
    <td height="25" colspan="5" align="right" bgcolor="#F0F0F0" style="padding-right:6px;padding-left:6px;">
      <div style="float:left;">
      <input type="button" name="ss12" value="关闭窗口" style="width:90px" onClick="window.close();" class='inputbut'>
      </div>
      
      <div style="float:right;">
      <span style="font-weight:bold;">订单总计:</span> <span style="color:red;"><?php echo sprintf("%01.2f", $priceCount);?></span>元, {dede:pagelist listsize=3/}
      <div>
    </td>
  </tr>
</table>
</body>
</html>